package my.edu;

import my.edu.common.factory.YamlPropertySourceFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.PropertySource;
import org.springframework.scheduling.annotation.EnableAsync;

@SpringBootApplication
@EnableAsync
@PropertySource(value = {"classpath:order-type-no.yml","classpath:type.yml"},factory = YamlPropertySourceFactory.class)
public class GraduationDesErpApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(GraduationDesErpApplication.class, args);
//        for (String name : run.getBeanDefinitionNames()) {
//            System.out.println(name);
//        }
    }
}
